﻿var oldChkProduct=null;

function chkThis(obj) {
	if(oldChkProduct != null && obj != oldChkProduct) {
		oldChkProduct.checked = false;
	}
	oldChkProduct = obj;
	if(obj.checked){
		$("msgDisplay").style.display = "";
		$("name0").innerHTML = obj.getAttribute("p1");
		$("name1").innerHTML = (obj.getAttribute("p3")/1024)+"MB";
		$("name2").innerHTML = obj.getAttribute("p6");
		$("name3").innerHTML = obj.getAttribute("p7")+"个月";
		$("name4").innerHTML = obj.getAttribute("p2")+"元";
	} else {
		$("msgDisplay").style.display = "none";
		$("name0").innerHTML = "";
		$("name1").innerHTML = "";
		$("name2").innerHTML = "";
		$("name3").innerHTML = "";
		$("name4").innerHTML = "";
	}
	
}

function btnNext() {
	if(oldChkProduct == null || !oldChkProduct.checked) {
		alert("你还未选择产品,不能进入下一步!");
	}else{
		window.location.replace("/filter/play/order");
	}
}